home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_stormgen.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
870b
|
46 lines
# Jedi Knight Cog Script
#
# 00_STORMGEN.COG
#
# Simple... just spawn one guy and move him somewhere...
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
thing pos desc=generator_ghost
thing targetThing desc=target_ghost
template enemyTpl desc=enemy_to_generate
sector theSector
surface theSurface
int enemy local
flex done=0 local
message entered
message crossed
end
# ========================================================================================
code
entered:
crossed:
if(done) return;
done = 1;
enemy = CreateThing(enemyTpl, pos);
AISetMoveThing(enemy, targetThing);
Return;
end